import request from '@/utils/request'

/**
 * 商品图片关联表分页查询
 * @param {查询条件} data
 */
export function listCorecmsbillaftersalesimages(query) {
  return request({
    url: 'order/Corecmsbillaftersalesimages/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增商品图片关联表
 * @param data
 */
export function addCorecmsbillaftersalesimages(data) {
  return request({
    url: 'order/Corecmsbillaftersalesimages',
    method: 'post',
    data: data,
  })
}
/**
 * 修改商品图片关联表
 * @param data
 */
export function updateCorecmsbillaftersalesimages(data) {
  return request({
    url: 'order/Corecmsbillaftersalesimages',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取商品图片关联表详情
 * @param {Id}
 */
export function getCorecmsbillaftersalesimages(id) {
  return request({
    url: 'order/Corecmsbillaftersalesimages/' + id,
    method: 'get'
  })
}

/**
 * 删除商品图片关联表
 * @param {主键} pid
 */
export function delCorecmsbillaftersalesimages(pid) {
  return request({
    url: 'order/Corecmsbillaftersalesimages/delete/' + pid,
    method: 'POST'
  })
}
